package com.smt.ejb3.tutoria.inteceptor;

import javax.interceptor.AroundInvoke;
import javax.interceptor.InvocationContext;

public class MrBeanInterceptor {
	@AroundInvoke
	public Object doIt(InvocationContext context) throws Exception{
		System.out.println("Will execute: "+context.getMethod().getName());
		Object obj = context.proceed();
		System.out.println(context.getMethod().getName()+" has been executed");
		return obj;
	}
}
